/**
 * Copyright &copy; 2012-2014 <a href="http://www.iframework.cn">Mas</a> All rights reserved.
 */
package com.iframework.mas.modules.accident.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.iframework.mas.common.persistence.DataEntity;

/**
 * 事故列表Entity
 * @author 余艾龙
 * @version 2016-01-30
 */
public class Accidentresult extends DataEntity<Accidentresult> {
	
	private static final long serialVersionUID = 1L;
	private Accident accident;		// 事故主表Id 父类
	private String resultcontent;		// 调解结果
	private String copid;		// 民警编号
	private Long rdsid;		// 认定书Id
	private String querypwd;		// 用户查询密码
	private String blame;		// 事故详情
	private String processcenter;		// 快赔服务点
	private Date accepetdate;		// 受理日期
	private Date closedate;		// 结案日期
	private String printdate;		// 打印日期（多个，以 '|' 分隔）
	private String printtimes;		// 打印次数
	private String user;		// 民警姓名
	private String office;		// 归属管理大队
	private String remark;		// remark
	
	public Accidentresult() {
		super();
	}

	public Accidentresult(String id){
		super(id);
	}

	public Accidentresult(Accident accident){
		this.accident = accident;
	}

	@NotNull(message="事故主表Id不能为空")
	public Accident getAccident() {
		return accident;
	}

	public void setAccident(Accident accident) {
		this.accident = accident;
	}
	
	@Length(min=0, max=100, message="调解结果长度必须介于 0 和 100 之间")
	public String getResultcontent() {
		return resultcontent;
	}

	public void setResultcontent(String resultcontent) {
		this.resultcontent = resultcontent;
	}
	
	@Length(min=0, max=20, message="民警编号长度必须介于 0 和 20 之间")
	public String getCopid() {
		return copid;
	}

	public void setCopid(String copid) {
		this.copid = copid;
	}
	
	public Long getRdsid() {
		return rdsid;
	}

	public void setRdsid(Long rdsid) {
		this.rdsid = rdsid;
	}
	
	@Length(min=0, max=100, message="用户查询密码长度必须介于 0 和 100 之间")
	public String getQuerypwd() {
		return querypwd;
	}

	public void setQuerypwd(String querypwd) {
		this.querypwd = querypwd;
	}
	
	@Length(min=0, max=100, message="事故详情长度必须介于 0 和 100 之间")
	public String getBlame() {
		return blame;
	}

	public void setBlame(String blame) {
		this.blame = blame;
	}
	
	@Length(min=0, max=50, message="快赔服务点长度必须介于 0 和 50 之间")
	public String getProcesscenter() {
		return processcenter;
	}

	public void setProcesscenter(String processcenter) {
		this.processcenter = processcenter;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="受理日期不能为空")
	public Date getAccepetdate() {
		return accepetdate;
	}

	public void setAccepetdate(Date accepetdate) {
		this.accepetdate = accepetdate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="结案日期不能为空")
	public Date getClosedate() {
		return closedate;
	}

	public void setClosedate(Date closedate) {
		this.closedate = closedate;
	}
	
	public String getPrintdate() {
		return printdate;
	}

	public void setPrintdate(String printdate) {
		this.printdate = printdate;
	}
	
	@Length(min=0, max=11, message="打印次数长度必须介于 0 和 11 之间")
	public String getPrinttimes() {
		return printtimes;
	}

	public void setPrinttimes(String printtimes) {
		this.printtimes = printtimes;
	}
	
	@Length(min=0, max=20, message="民警姓名长度必须介于 0 和 20 之间")
	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}
	
	@Length(min=0, max=11, message="归属管理大队长度必须介于 0 和 11 之间")
	public String getOffice() {
		return office;
	}

	public void setOffice(String office) {
		this.office = office;
	}
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}